<div class="form">

    <?php
    $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
        'action'=>Yii::app()->createUrl('/Wewenang/Users/UpdatePassword',array('id'=>Yii::app()->user->getId())),
        'id' => 'wewenang-users-form',
        'enableAjaxValidation' => false,
        'method' => 'post',
        'type' => 'horizontal',
        'htmlOptions' => array(
            'enctype' => 'multipart/form-data'
        )
            ));
    ?>

    <!--fieldset>
        <legend><p class="note">Fields with <span class="required">*</span> are required.</p></legend-->	

            <?php echo $form->errorSummary($model); ?>

        <div class="row">
            <?php echo $form->textFieldRow($model, 'username', array('size' => 20, 'maxlength' => 20)); ?>
            <?php echo $form->error($model, 'username'); ?>
        </div>

        <div class="row">
            <?php echo $form->passwordFieldRow($model, 'password', array('size' => 60, 'maxlength' => 128)); ?>
            <?php echo $form->error($model, 'password'); ?>
        </div>
        <div class="row">
            <?php echo $form->textFieldRow($model, 'nip', array('size' => 60, 'maxlength' => 18)); ?>
            <?php echo $form->error($model, 'nip'); ?>
        </div>

        <div class="row">
            <?php echo $form->hiddenField($model, 'wewenang', array('size' => 60, 'maxlength' => 18)); ?>
            <?php echo $form->error($model, 'wewenang'); ?>
        </div>
		<!--
        <div class="row" style="visibility:hidden;">
            <div class="span-2">
                <?php //echo $form->checkBoxRow($model, 'status', array('size' => 60, 'maxlength' => 128)); ?>
                <?php //echo $form->error($model, 'status'); ?>
            </div>
            <div class="span-2">
                <?php //echo $form->checkBoxRow($model, 'superuser', array('size' => 60, 'maxlength' => 128)); ?>
                <?php //echo $form->error($model, 'superuser'); ?>
            </div>
        </div>
		-->

        <!--div class="row buttons">
            <?php //echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save',array('class'=>'btn-primary')); ?>
        </div-->
        
        <div class="form-actions">
		<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
                        'icon'=>'ok white',  
			'label'=>$model->isNewRecord ? 'Tambah' : 'Simpan',
		)); ?>              
	</div>
   <!--/fieldset-->
<?php $this->endWidget(); ?>

</div><!-- form -->